# while循环
current_number = 1

# while 判断条件
while current_number <= 5:
    print(current_number)
    # 累加 1
    current_number += 1

"""7.2.2.让用户决定何时退出"""
prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
message = ""
while message != 'quit':
    message = input(prompt)
    print(message)


prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
message = ""

# message 不等于 quit 才执行，等于 quit 退出循环
while message != 'quit':
    message = input(prompt)
    # message 不等于 quit 才执行，等于 quit 不执行命令
    if message != 'quit':
        print(message)